<form method="post" action="" id="shopProductForm" enctype="multipart/form-data">
<table align="center" class="table2">
	<tr><td colspan='3'>
	{$error}
	</td></tr>
	<tr>
		<th align="right">
			商户名称:
		</th>
		<td>
			{$modelInfo.shop_name}
		</td>
		<td>
		</td>
	</tr>
	<tr>
		<th align="right" width="90px">
			产品名称:
		</th>
		<td width="360px">
			<input style="width:250px;" type="text" id="txt_p_name" name="txt_p_name" value="{$modelInfo.p_name}" />
		</td>
		<td>
			<div id="txt_p_name_tip"></div>
		</td>
	</tr>
	<tr>
		<th align="right" width="90px">
			所属分类
		</th>
		<td width="360px">
			<select name="sel_p_type" id="sel_p_type">
				{foreach from=$pType item=list}
					<option value="{$list.id}" {if $list.id eq $modelInfo.p_type}selected="selected"{/if}>{$list.name}</option>
				{/foreach}
			</select>
		</td>
		<td>
			<div id="txt_p_name_tip"></div>
		</td>
	</tr>
	<tr>
		<th align="right">
			产品图片:
		</th>
		<td>
			<input type="file" name="fileImg" id="fileImg"  onchange="changeSrc('fileImg','shopProductForm','hidImgPath','imgContent','shopProduct')"></input><br />
			图片限制格式gif,jpg/jpeg,png;大小限制500kb<br />
			<img id="imgContent" src="{if $modelInfo.pic_path eq ''}{$imgDomain}images/kongbai.jpg{else}{$modelInfo.pic_path}{/if}" />
			<input type="hidden" id="hidImgPath" name="hidImgPath" value="{$modelInfo.pic_path}" />
			<div id="frameDiv" style="display:none;"></div>
		</td>
		<td>
			<div id="txt_pic_path_tip"></div>
		</td>
	</tr>
	<tr>
		<th></th>
		<td colspan="2">
		<div style="margin-right:10px;" class="left"><a class="buttonStyle" onclick="submitForm('shopProductForm')"><span></span>确定</a></div>
    	<div class="left"><a class="buttonStyle" href="{$manageDomain}shopProductManage/show/"><span></span>返回</a></div>
		</td>
	</tr>
</table>
</form>
